<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header">

</head>
<link rel="stylesheet" th:href="@{/css/bootstrap.css}">
<link rel="stylesheet" th:href="@{/css/bootstrap-theme.css}">
<link rel="stylesheet" th:href="@{/css/game.css}">
<link rel="stylesheet" th:href="@{/css/gamescss.css}">
<body>
<nav th:replace="layouts::navbar"></nav>

<div class="container">
    <h3>玩家列表</h3>
    <hr>
    <a th:href="@{/games/new}" class="btn btn-primary btn-sm mb-3">新增游戏</a>
    <br>
    <table class="table table-bordered tale-striped">
        <thead class="thead-dark">
        <tr>
            <th>游戏名称</th>
            <th>游戏类型</th>

        </tr>
        </thead>
        <tbody>
        <tr th:each="aGame : ${games}">
            <td th:text="${aGame.name}"></td>
            <td th:text="${aGame.description}"></td>

        </tr>
        </tbody>
    </table>

</div>
<script src="../../js/bootstrap.min.js" type="text/javascript"></script>
<script src="../../js/demo.js" type="text/javascript"></script>
</body>